import re
import sys

timestamp = None
state = 0
krw = None
usdt = None

print('timestamp,price,label')

for line in sys.stdin:
  if line.startswith('* 2018'):
    timestamp = line[2:-1]
  elif line.startswith('KRW: '):
    splitted = re.split('\ +', line)
    krw = float(splitted[5][:-1])
    print('"%s",%f,"KRW"' % (timestamp, krw))
